import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import echarts from 'echarts'
import VueVideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
import 'videojs-contrib-hls/dist/videojs-contrib-hls'
// 导入字体图标
import './assets/fonts/iconfont.css'
// 导入全局样式表
import './assets/css/global.css'
import 'element-ui/lib/theme-chalk/index.css'
import 'vue-video-player/src/custom-theme.css'
import axios from 'axios'
import qs from 'qs'

// 配置请求的根路径
// axios.defaults.baseURL = 'http://192.168.1.12:8087/baio/'
axios.defaults.baseURL = '/ssms'
// axios.interceptors.request.use(config => {
//   // console.log(config)
//   config.headers.Authorization = window.sessionStorage.getItem('token')
//   return config
// })
Vue.prototype.$http = axios
Vue.prototype.$qs = qs
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
Vue.use(VueVideoPlayer)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
